package com.shph.test.rule;

import com.shph.validation.rule.IRule;

public class AgeRangeRule implements IRule<Integer> {
    @Override
    public boolean test(Integer value, String refValue) {
        if (value < 0 || value > 200) {
            throw new RuntimeException();
        }
        return true;
    }
}
